<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">

<h:head>
	<title>Chestionare</title>
</h:head>
<h:body style="background-color:#FFEEF7;">
	<h2 align="center" style="font-family:Comic Sans MS;color:#3D007A;" >
	<h:outputText value="#{msg.welcome}"></h:outputText>
	</h2>
	

	<h:messages style="color:red"></h:messages>
	
	<h:form>
		<h:panelGrid columns="3">
	 
			#{msg.language}
			<h:selectOneMenu value="#{language.localeCode}" onchange="submit()"
				valueChangeListener="#{language.countryLocaleCodeChanged}">
	   			<f:selectItems value="#{language.countriesInMap}" /> 
	   		</h:selectOneMenu>
	 
		</h:panelGrid>
	</h:form>
	<h:form>
		<h:panelGrid columns="2">
			<h:outputText value="#{msg.user}"></h:outputText>
			<h:inputText id="userNameId" value="#{loginBean.username}" required="true" label="#{msg.user}" style="width: 156px; "></h:inputText>
			<h:outputText value="#{msg.password}"></h:outputText>
			<h:inputSecret id="passwordId" value="#{loginBean.passwort}" size="20" label="#{msg.pass}">
				<f:validateRequired />
			</h:inputSecret>

		</h:panelGrid>

		<h:commandButton value="#{msg.login}" action="#{loginBean.login}"></h:commandButton>
	</h:form>

	
	
</h:body>
</html>